#pragma once

#include "ArmyData.h"
#include "IArmyState.h"
#include "GunParameters.h"

class GunState : public IArmyState {
private:
	ArmyData* _armyData;
	int _currentStateIndex, _counter;


	/*
	Check current targetRect to check what state gun is, by distance of gun and target:
	State: Up, Down, Left, Right, HalfUp, HalfDown
	*/
	void _updateGunState();
public:
	GunState(ArmyData* data);

	virtual void initSprites() ;

	virtual void update(long timetick);

	virtual void draw(long timetick);
};